package com.dd.service;

import com.dd.dao.CoachMapper;
import com.dd.pojo.Coach;
import com.dd.pojo.Course;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CoachServiceImpl implements CoachService{
    @Autowired
    CoachMapper coachMapper;

    public List<Coach> selectcoach() {
        return coachMapper.selectcoach();
    }

    public int addcoach(Coach coach) {
        return coachMapper.addcoach(coach);
    }

    public int updatecoach(Coach coach) {
        return coachMapper.updatecoach(coach);
    }

    public int deletecoach(int id) {
        return coachMapper.deletecoach(id);
    }

    public List<String> selectname() {
        return coachMapper.selectname();
    }

    public List<Coach> selectbyjname(String jname) {
        return coachMapper.selectbyjname(jname);
    }

}
